home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / X11R4 / cmds / X / include / RCS / gc.h,v < prev    next >
Encoding:
Text File  |  1990-02-15  |  2.5 KB  |  92 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     90.02.14.16.17.18;  author tve;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @Original X11R4 distribution
  17. @
  18.  
  19.  
  20.  
  21. 1.1
  22. log
  23. @Initial revision
  24. @
  25. text
  26. @
  27. /***********************************************************
  28. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
  29. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  30.  
  31.                         All Rights Reserved
  32.  
  33. Permission to use, copy, modify, and distribute this software and its 
  34. documentation for any purpose and without fee is hereby granted, 
  35. provided that the above copyright notice appear in all copies and that
  36. both that copyright notice and this permission notice appear in 
  37. supporting documentation, and that the names of Digital or MIT not be
  38. used in advertising or publicity pertaining to distribution of the
  39. software without specific, written prior permission.  
  40.  
  41. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  42. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  43. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  44. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  45. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  46. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  47. SOFTWARE.
  48.  
  49. ******************************************************************/
  50. /* $XConsortium: gc.h,v 1.50 89/09/12 09:27:42 rws Exp $ */
  51.  
  52. #ifndef GC_H
  53. #define GC_H 
  54.  
  55. /* clientClipType field in GC */
  56. #define CT_NONE            0
  57. #define CT_PIXMAP        1
  58. #define CT_REGION        2
  59. #define CT_UNSORTED        6
  60. #define CT_YSORTED        10
  61. #define CT_YXSORTED        14
  62. #define CT_YXBANDED        18
  63.  
  64. #define GCQREASON_VALIDATE    1
  65. #define GCQREASON_CHANGE    2
  66. #define GCQREASON_COPY_SRC    3
  67. #define GCQREASON_COPY_DST    4
  68. #define GCQREASON_DESTROY    5
  69.  
  70. #define GC_CHANGE_SERIAL_BIT        (1L<<31)
  71. #define GC_CALL_VALIDATE_BIT        (1L<<30)
  72. #define GCExtensionInterest   (1L<<29)
  73.  
  74. #define DRAWABLE_SERIAL_BITS        (~(GC_CHANGE_SERIAL_BIT))
  75.  
  76. #define MAX_SERIAL_NUM     (1L<<28)
  77. #define NEXT_SERIAL_NUMBER ((++globalSerialNumber) > MAX_SERIAL_NUM ? \
  78.         (globalSerialNumber  = 1): globalSerialNumber)
  79.  
  80. typedef struct _GCInterest *GCInterestPtr;
  81. typedef struct _GC    *GCPtr;
  82. extern void  ValidateGC();
  83. extern int ChangeGC();
  84. extern GCPtr CreateGC();
  85. extern int CopyGC();
  86. extern int FreeGC();
  87. extern void SetGCMask();
  88. extern GCPtr GetScratchGC();
  89. extern void  FreeScratchGC();
  90. #endif /* GC_H */
  91. @
  92.